﻿<include file="Public/head"/>
    <div class="container-fluid">
        <div class="row-fluid">
            <h4>自定义菜单</h4>
            <div class="add">
                <a class="btn btn-success" href='{:U("Menu/add")}'>新增</a>
                <a class="btn btn-warning" href='{:U("Menu/update")}' style='magin-left:10px;'>更新菜单</a>
            </div>
            <div class="w">
                <div class="span12">
                    <table class="table table-condensed table-bordered table-hover tab">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>菜单名称</th>
                                <th>类型</th>
                                <th>跳转地址/关键字</th>
                                <th>操作</th>
                            </tr>
                            <volist name="data" id="vo">
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td style='text-align:left !important'>{$vo.name}</td>
                                    <td>
                                        <if condition="$vo.type eq 1">
                                            关键字
                                        <else/>
                                            链接
                                        </if>
                                    </td>
                                    <td>
                                        <if condition="$vo.type eq 1">
                                            {$vo.key}
                                        <else/>
                                            {$vo.url}
                                        </if>
                                    </td>
                                    <td><a href='{:U("Menu/edit")}?id={$vo.id}'>修改</a>　<a href='{:U("Menu/del")}?id={$vo.id}' onclick="return confirm('确定要删除吗?')">删除</a></td>
                                </tr>
                            </volist>
                        </thead>
                        <tbody id="tbody"></tbody>
                    </table>
                    <div id="page" class="tr"></div>
                </div>
            </div>
        </div>
    </div>
<include file="Public/foot"/>
